/**
 * 
 */
package com.google.code.model;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * @author guilhem
 *
 */
public class BaseSQLLite extends SQLiteOpenHelper {
	
	private static final String TABLE_COMPTES = "comptes";
	
	private static final String CREATE_BDD = 
		"CREATE TABLE "+TABLE_COMPTES+" (" +
			"id INTEGER PRIMARY KEY AUTOINCREMENT, " +
			"nom TEXT NOT NULL, " +
			"soldecourant INTEGER" +
		");";

	public BaseSQLLite(Context context, String name, CursorFactory factory,
			int version) {
		super(context, name, factory, version);
	}

	/* (non-Javadoc)
	 * @see android.database.sqlite.SQLiteOpenHelper#onCreate(android.database.sqlite.SQLiteDatabase)
	 */
	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(CREATE_BDD);
	}

	/* (non-Javadoc)
	 * @see android.database.sqlite.SQLiteOpenHelper#onUpgrade(android.database.sqlite.SQLiteDatabase, int, int)
	 */
	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

	}

}
